package dog.gui.calendar;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.Collections;

import javax.swing.*;

import constants.CHANGE;
import containers.AppKey;
import containers.Appointment;
import dog.gui.GUI;
import dog.model.Model;

@SuppressWarnings("serial")
public class DayTimes extends JPanel
	{
	private int width;
	private int hourHeight;
	private Model model;
	public DayTimes(Model model)
		{
		this.model=model;
		width=64;
		hourHeight=16;
		setLayout(null);
		setPreferredSize(new Dimension(width,24*hourHeight+32));
		}
	public void paintComponent(Graphics g)
		{
		super.paintComponent(g);
		int textHeight = 12;
        g.setFont(new Font("Courier New", 0, textHeight));
        g.setColor(Color.BLACK);
        
		for(int i=0; i<=24; i+=1)
			{
			String str;
			if (i<10)
				str = "0"+i;
			else
				str=""+i;
			g.drawString(str+":00", 0, i*hourHeight+textHeight-3);
			}
		g.drawString("Day/Time", 0, 24*hourHeight+28);
		
		}
	}
